package xyz.ymtao.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import xyz.ymtao.event.BlockedListEvent;

/**
 * @author: ymt
 * @description:
 * @date: 2021/8/19  10:43
 */
@Component
public class SpringEventListener  {

    @EventListener
    public void processBlockedListEvent(BlockedListEvent event) {
        System.out.println("BlockedListEvent =====> " + event.getAddress());
    }

}
